//编写一函数求三个整数的最大值

#include <stdio.h>

int max(int a,int b,int c)
{
	int m;
	m = a>b?a:b;
	m = m>c?m:c;
	return (m);
}

int main()
{
	int a,b,c;
	printf("input 3 numbers :");
	scanf("%d %d %d",&a,&b,&c);
	printf("max = %d\n",max(a,b,c));

	return 0 ;
}

